@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --ebatc1-dark: #0b1329;
    --ebatc1-white: #ffffff;
    --ebatc1-primary: #0b1329;
    --ebatc1-secondary: #0284c7;
    --ebatc1-accent: #38bdf8;
    --ebatc1-gold: #f59e0b;

    --ebatc1-container-width: 1200px;

    --ebatc1-space-xs: .4rem;
    --ebatc1-space-sm: .8rem;
    --ebatc1-space-md: 1.2rem;
    --ebatc1-space-lg: 2rem;
    --ebatc1-space-xl: 3rem;

    --ebatc1-fs-sm: .85rem;
    --ebatc1-fs-base: 1rem;
    --ebatc1-fs-md: 1.1rem;
    --ebatc1-fs-lg: 1.125rem;
    --ebatc1-fs-xl: 1.6rem;
    --ebatc1-fs-2xl: 1.25rem;

    --ebatc1-transition: .35s cubic-bezier(.4, 0, .2, 1);
}

body {
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ebatc1-stats-section {
    background: linear-gradient(160deg, #0b1329 0%, #0f1a3a 40%, #0a1628 100%);
    padding: var(--ebatc1-space-xl) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--ebatc1-space-lg);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ebatc1-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15), transparent 70%);
    pointer-events: none;
}

.ebatc1-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--ebatc1-space-sm);
    padding: 0 15px;
}

/* العنوان الرئيسي وكلمة التمييز */
.ebatc1-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--ebatc1-white);
}

.ebatc1-title-highlight {
    color: var(--ebatc1-accent);
}

/* الخط السفلي الأنيق للعنوان */
.ebatc1-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--ebatc1-secondary), var(--ebatc1-accent));
    border-radius: 2px;
}

.ebatc1-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ebatc1-space-md);
    max-width: var(--ebatc1-container-width);
    width: 100%;
    padding: 0 20px;
}

.ebatc1-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

/* =========================================
   العناصر الداخلية (البطاقات)
========================================= */
.ebatc1-orb-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
}

.ebatc1-orb-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
}

.ebatc1-orb-graphic {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تنسيق الـ SVG ليأخذ حجم الحاوية بالكامل */
.ebatc1-orb-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* التنسيق المشترك لخطوط الدائرة */
.ebatc1-circle-fill,
.ebatc1-circle-progress {
    fill: transparent;
    stroke-width: 4;
    stroke-dasharray: 314.16;
}

/* الدائرة الأساسية */
.ebatc1-circle-fill {
    stroke: rgba(255, 255, 255, 0.08);
}

/* دائرة التقدم الملونة */
.ebatc1-circle-progress {
    stroke: var(--ebatc1-accent);
    stroke-dashoffset: 314.16;
    transition: stroke-dashoffset 1.8s ease-out;
}

/* =========================================
   النصوص المتجاوبة
========================================= */
.ebatc1-orb-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ebatc1-white);
    z-index: 1;
}

.ebatc1-orb-label {
    color: rgba(240, 249, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================
   فئة التشغيل عند التمرير (تُضاف عبر JS)
========================================= */
.ebatc1-orb-card.ebatc1-is-animated .ebatc1-circle-progress {
    stroke-dashoffset: 0;
}

@media (max-width: 992px) {
    .ebatc1-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ebatc1-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}